<template>
  <div id="AssetRegMain">
    <div class="wrap">
      <div class="tipbox">
        对本单位资产设备进行登记，管理。功能包括单台登记，批量登记，资产管理，批量导入。
      </div>
      <div class="list">
        <div class="li" @click="openDialog">
          <a href="javascript:void(0);">
            <div class="yw_item">
              <i class="d01"></i>
              <div class="dname"><span></span><br>单台登记</div>
              <p>该功能一次登记一台资产设备，设备的基本参数不同时，只能进行单台登记</p>
            </div>
          </a>
        </div>

        <div class="li">
          <a href="javascript:void(0);">
            <div class="yw_item">
              <i class="d02"></i>
              <div class="dname"><span></span><br>批量登记</div>
              <p>该功能一次登记一台资产设备，设备的基本参数不同时，只能进行单台登记</p>
            </div>
          </a>
        </div>
        <div class="li">
          <a href="javascript:;">
            <div class="yw_item">
              <i class="d03"></i>
              <div class="dname"><span></span><br>资产管理</div>
              <p>该功能一次登记一台资产设备，设备的基本参数不同时，只能进行单台登记</p>
            </div>
          </a>
        </div>
        <div class="li">
          <a href="javascript:void(0);">
            <div class="yw_item">
              <i class="d04"></i>
              <div class="dname"><span></span><br>批量导入</div>
              <p>该功能一次登记一台资产设备，设备的基本参数不同时，只能进行单台登记</p>
            </div>
          </a>
        </div>
      </div>
    </div>


    <v-modal></v-modal>
  </div>
</template>

<script>
  import Modal from './Modal'
  import bus from '../../model/VueEvent';

  export default {
    name: "AssetRegMain",
    components:{
      'v-modal': Modal
    },
    methods: {
      openDialog() {   //打开模态框
        bus.$emit('dialogFormVisible', true);
      }
    }
  }
</script>

<style scoped>
  #AssetRegMain {
    /*border: 1px solid red;*/
    top: 0px;
    bottom: 0px;
    height: 100%;
  }

  .wrap {
    margin: 0 auto;
    width: 80%;
    padding-top: 100px;
    height: 530px;
    /*border: 10px solid red;*/
  }

  .tipbox {
    margin-top: 60px;
    padding-left: 10px;
    border-left: 3px solid #fb9337;
    font-size: 14px;
  }

  .list {
    margin-top: 60px;
  }

  .list .li {
    display: inline-block;
    width: 24%;
    min-width: 240px;
    text-align: center;
    vertical-align: top;
    /*border: 1px solid red;*/
  }

  .list .li a {
    margin: 0;
    text-decoration: none;
  }

  .yw_item {
    width: 228px;
    height: 300px;
    background: #fff;
    border: 1px solid #d7d8d9;
    box-shadow: 0px 0px 7px 0px rgba(35, 24, 21, 0.05);
    text-align: center;
    letter-spacing: normal;
    margin: 0;
  }

  .yw_item:hover {
    border-radius: 4px;
    box-shadow: 0px 0px 30px 0px rgba(35, 24, 21, 0.1);
  }

  .yw_item i {
    width: 72px;
    height: 72px;
    display: inline-block;
    margin: 42px 0 0 0;
  }

  .yw_item i.d01 {
    background: url(/static/images/d_01.png) no-repeat;
  }

  .yw_item i.d02 {
    background: url(/static/images/d_02.png) no-repeat;
  }

  .yw_item i.d03 {
    background: url(/static/images/d_03.png) no-repeat;
  }

  .yw_item i.d04 {
    background: url(/static/images/d_04.png) no-repeat;
  }

  .yw_item .dname {
    color: #4c4c4c;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 20px 0;
  }

  .yw_item p {
    padding: 19px;
    padding-top: 0px;
    color: #666;
    text-align: left;
    line-height: 24px;
    font-size: 12px;
  }

  .yw_item .dname span {
    width: 30px;
    height: 3px;
    background: #e5e5e5;
    display: inline-block;
    margin-bottom: 10px;
  }

  .list .li a:hover .yw_item .dname {
    color: #ff8030;
  }
</style>
